package com.lam.monitor.domain;

import com.lam.common.base.domain.BaseEntity;
import com.lam.common.components.dict.annotation.Dict;

/**
 * 当前在线会话
 * 
 * @author lam
 */
public class UserOnline implements BaseEntity{
	
	/** 是否当前登录用户 */
	private boolean curUser;
	
	/**
     * 操作类别（a-后台，f-前端app, o-其它）
     */
	@Dict(dictCode = "operator_type")
	private String operatorType;

	/** 登录人id */
	private int no;

	/** 登录人账号 */
	private String username;
	
	/** 登录注册方式（1-手机号，2-邮箱，3-账号密码） */
    @Dict(dictCode = "reg_type")
    private Integer regType;
	
	/** 用户昵称 */
	private String nickName;

	/** 登录人名字 */
	private String realname;

	/** 头像 */
	private String avatar;

	/** 性别（1：男 2：女） */
	@Dict(dictCode = "sex")
	private Integer sex;

	/** 电子邮件 */
	private String email;

	/** 电话 */
	private String phone;

	/** 状态(1：正常 2：禁用） */
	@Dict(dictCode = "user_status")
	private Integer status;
	/** 职务，关联职务表 */
	private String post;
	/** 工号 */
    private String workNo;
    
    /** 用户类型(1前端，2后端，3前端和后端，0禁止登陆) */
    @Dict(dictCode = "user_type")
    private Integer userType;
    
    /** 用户唯一标识 */
	private String tokenId;
	/** 登陆时间 */
	private long loginTime;
	/** 登陆时间 */
	private String loginTimeStr;
	/** 在线时长 */
	private String onlineTimeStr;
	/** 有效时长 */
	private String expireTimeStr;
	/** 过期时间 */
	private String expiresAtStr;
    /** 登录IP地址 */
	private String ipaddr;
	/** 登录地点 */
	private String loginLocation;
	/** 浏览器类型 */
	private String browser;
	/** 操作系统 */
	private String os;
	/** 机器码 */
    private String machineCode;
    
	public boolean isCurUser() {
		return curUser;
	}
	public void setCurUser(boolean curUser) {
		this.curUser = curUser;
	}
	public String getOperatorType() {
		return operatorType;
	}
	public void setOperatorType(String operatorType) {
		this.operatorType = operatorType;
	}
	public int getNo() {
		return no;
	}
	public void setNo(int no) {
		this.no = no;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getRealname() {
		return realname;
	}
	public void setRealname(String realname) {
		this.realname = realname;
	}
	public String getAvatar() {
		return avatar;
	}
	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	public Integer getSex() {
		return sex;
	}
	public void setSex(Integer sex) {
		this.sex = sex;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getPost() {
		return post;
	}
	public void setPost(String post) {
		this.post = post;
	}
	public String getWorkNo() {
		return workNo;
	}
	public void setWorkNo(String workNo) {
		this.workNo = workNo;
	}
	public Integer getUserType() {
		return userType;
	}
	public void setUserType(Integer userType) {
		this.userType = userType;
	}
	public String getTokenId() {
		return tokenId;
	}
	public void setTokenId(String tokenId) {
		this.tokenId = tokenId;
	}
	public long getLoginTime() {
		return loginTime;
	}
	public void setLoginTime(long loginTime) {
		this.loginTime = loginTime;
	}
	public String getLoginTimeStr() {
		return loginTimeStr;
	}
	public void setLoginTimeStr(String loginTimeStr) {
		this.loginTimeStr = loginTimeStr;
	}
	public String getOnlineTimeStr() {
		return onlineTimeStr;
	}
	public void setOnlineTimeStr(String onlineTimeStr) {
		this.onlineTimeStr = onlineTimeStr;
	}
	public String getExpireTimeStr() {
		return expireTimeStr;
	}
	public void setExpireTimeStr(String expireTimeStr) {
		this.expireTimeStr = expireTimeStr;
	}
	public String getExpiresAtStr() {
		return expiresAtStr;
	}
	public void setExpiresAtStr(String expiresAtStr) {
		this.expiresAtStr = expiresAtStr;
	}
	public String getIpaddr() {
		return ipaddr;
	}
	public void setIpaddr(String ipaddr) {
		this.ipaddr = ipaddr;
	}
	public String getLoginLocation() {
		return loginLocation;
	}
	public void setLoginLocation(String loginLocation) {
		this.loginLocation = loginLocation;
	}
	public String getBrowser() {
		return browser;
	}
	public void setBrowser(String browser) {
		this.browser = browser;
	}
	public String getOs() {
		return os;
	}
	public void setOs(String os) {
		this.os = os;
	}
	public String getMachineCode() {
		return machineCode;
	}
	public void setMachineCode(String machineCode) {
		this.machineCode = machineCode;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public Integer getRegType() {
		return regType;
	}
	public void setRegType(Integer regType) {
		this.regType = regType;
	}
    
    
}
